package com.movie.act;

import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import android.widget.RatingBar;
import android.widget.RatingBar.OnRatingBarChangeListener;
import android.widget.TextView;

import com.movie.util.Log;

/**
 * 06-影片评论-写 评论
 * 
 * @author Administrator
 * 
 */
public class WritePinLunAct extends BaseActivity {

	private RatingBar pointtrate = null;
	private TextView point = null;
	private ImageView fabiao = null;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.writepinlunact);
		initBackTitleBar();
		pointtrate = (RatingBar) findViewById(R.id.pointtrate);
		point = (TextView) findViewById(R.id.point);
		fabiao = (ImageView) findViewById(R.id.fabiao);
		pointtrate
				.setOnRatingBarChangeListener(new OnRatingBarChangeListener() {

					@Override
					public void onRatingChanged(RatingBar ratingBar,
							float rating, boolean fromUser) {
						Log.i("-----------pointtrate onRatingChanged+rating"
								+ rating);
						point.setText(rating + "");
					}
				});

		fabiao.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {

			}
		});
	}
}
